const Main = () => import('@/components/main/main')
const ParentView = () => import('@/components/parent-view')
const Login = () => import('@/view/login/login.vue')
const Home = () => import('@/view/single-page/home')
const Error401 = () => import('@/view/error-page/401.vue')
const Error500 = () => import('@/view/error-page/500.vue')
const Error404 = () => import('@/view/error-page/404.vue')
const JoinPage = () => import('@/view/join-page.vue')
const CountTo = () => import('@/view/components/count-to/count-to.vue')
const DragList = () => import('@/view/components/drag-list/drag-list.vue')
const Table = () => import('@/view/components/tables/tables.vue')
const SplitPane = () => import('@/view/components/split-pane/split-pane.vue')
const Markdown = () => import('@/view/components/markdown/markdown.vue')
const Editor = () => import('@/view/components/editor/editor.vue')
const Icons = () => import('@/view/components/icons/icons.vue')
const UpdateTable = () => import('@/view/update/update-table.vue')
const UpdatePaste = () => import('@/view/update/update-paste.vue')
const UploadExcel = () => import('@/view/excel/upload-excel.vue')
const ExportExcel = () => import('@/view/excel/export-excel.vue')
const ToolsMethods = () => import('@/view/tools-methods/tools-methods.vue')
const Directive = () => import('@/view/directive/directive.vue')
const MenuManager = () => import('@/view/structure/menuManager.vue')
const Params = () => import('@/view/argu-page/params.vue')
const Query = () => import('@/view/argu-page/query.vue')
const PlanPurchase= () => import('@/view/busi/planPurchase.vue')
const Instation= () => import('@/view/busi/instation.vue')
const Visit= () => import('@/view/busi/visit.vue')
const Pound= () => import('@/view/busi/pound.vue')
const Component= () => import('@/view/busi/ciq.vue')
const Ccpound= () => import('@/view/busi/ccpound.vue')
const Material= () => import('@/view/doc/material.vue')
const Company= () => import('@/view/doc/company.vue')
const Warehouse= () => import('@/view/doc/warehouse.vue')
const Reference= () => import('@/view/doc/reference.vue')
const Warehousing= () => import('@/view/busi/warehousing.vue')
const Deliver= () => import('@/view/busi/deliver.vue')
const References= () => import('@/view/busi/reference.vue')
const Monitor= () => import('@/view/structure/monitor.vue')
const Persion= () => import('@/view/structure/persion.vue')
const RoleManager= () => import('@/view/structure/roleManager.vue')
const Department= () => import('@/view/structure/department.vue')
const ChangePassword= () => import('@/view/changePassword/changePassword.vue')
const Ureport= () => import('@/view/ureport/ureportTest.vue')
const Ws= () => import('@/view/ws/websocket.vue')
export const routerMap = {
      Main,
      Ws,
      Warehousing,
      Ureport,
      ChangePassword,
      RoleManager,
      Department,
      Persion,
      Monitor,
      References,
      Deliver,
      ParentView,
      Login, Home,
      Error401,
      Error500,
      Error404,
      JoinPage,
      Reference,
      CountTo,
      DragList,
      Table,
      Warehouse,
      SplitPane,
      Markdown,
      Editor,
      Icons,
      UpdateTable,
      UpdatePaste,
      UploadExcel,
      ExportExcel,
      ToolsMethods,
      Directive,
      MenuManager,
      Params,
      Query,
      PlanPurchase,
      Company,
      Instation,
      Visit,
      Pound,
      Component,
      Ccpound,
      Material
}
export const staticRouters = [
    { path: '/login', name: 'login', meta: { title: 'Login - 登录', hideInMenu: true }, component: routerMap['Login'] },
    { path: '/', name: '_home', redirect: '/home', meta: { notCache: true, hideInMenu: true }, component: routerMap['Main'], children: [{ path: '/home', name: 'home', meta: { notCache: true, hideInMenu: true, title: '首页' }, component: routerMap['Home'] }] },
    { path: '/401', name: 'error_401', meta: { hideInMenu: true }, component: routerMap['Error401'] },
    { path: '/500', name: 'error_500', meta: { 'hideInMenu': true }, component: routerMap['Error500'] },
    { path: '*', name: 'error_404', meta: { hideInMenu: true }, component: routerMap['Error404'] }
  ]
